﻿@model List<WebApplication1.Models.Course>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <table border="1">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Title</th>
                    <th>Credits</th>
                    <th>Show</th>
                    <th>Modify</th>
                    <th>Remove</th>

                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.CourseID</td>
                        <td>@item.Title</td>
                        <td>@item.Credits</td>
                        <th><a href="/Default/Detail/@item.CourseID">详情</a></th>
                        <td><a href="/Default/Modify/@item.CourseID">修改</a></td>
                        <td><a href="/Default/Remove/@item.CourseID">删除</a></td>

                    </tr>
                }
            </tbody>
        </table>

        <h1><a href="/Default/Add">添加</a></h1>
    </div>
    
</body>
</html>
